import request from '../api'

const URL = "/interface"

export function getAllInterFaceByPage(dto){
    return request.post(URL+"/getAllInterFaceByPage",dto)
}

export function findInterfaceById(id){
    return request.get(URL+`/findInterfaceById/${id}`)
}

export function updateInterfaceById(dto){
    return request.put(URL+"/updateInterfaceById",dto)
}

export function deleteInterFaceById(id){
    return request.delete(URL+`/deleteInterFaceById/${id}`)
}

export function addInterface(dto){
    return request.post(URL+"/addInterface",dto)
}

export function findInterfaceBySystemId(id){
    return request.get(URL+`/findInterfaceBySystemId/${id}`)
}